const {lessorsModel } = require('./models/lessorsModel');

//出租方注册
module.exports.registers = async lessorsData => {
    return await lessorsModel.create(lessorsData);
}

//出租方验证账号是否存在
module.exports.isRegisters = async isData => {
    const data = await lessorsModel.find(isData);
    return data;
}